package com.smart.admin.controller;

import com.smart.admin.common.request.CouponRequestParam;
import com.smart.common.vo.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * https://cloud.axureshop.com/mg2oq8/#g=1&p=index
 */
@Api("优惠券后台管理系统")
@RestController
@RequestMapping("/coupon")
public class CouponController {
    @ApiOperation("添加优惠券")
    @PostMapping(value = "/")
    public ResponseResult<Integer> add(@RequestBody CouponRequestParam couponRequestParam) {

        return null;
    }

    @ApiOperation("删除优惠券")
    @DeleteMapping(value = "/")
    public ResponseResult<Integer> del() {


        return null;
    }


    @ApiOperation("修改优惠券")
    @PutMapping("/")
    public ResponseResult<Integer> modified() {
        return null;
    }

    @ApiOperation("根据优惠券名称和类型分页获取优惠券列表")
    @GetMapping("/list")
    public ResponseResult<Integer> list() {
        return null;
    }

    @ApiOperation("获取单个优惠券的详细信息")
    @GetMapping("/{id}")
    public ResponseResult<Integer> detail(@PathVariable("id") Long id) {
        return null;
    }
}
